<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'gift_cart.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <script type="text/javascript">
  	function giftnum(){
  	
  	}
  </script>
  <style type="text/css">
  table{
  	border-collapse: collapse;
  }
  table th,table td{
  	border:1px solid black;
  	text-align: center;
  }
  
  img{
  width: 100px;
  height: 50px;
  }
  </style>
  
  <body>
    <div align="left" ><font>积分消费</font></div>
  	<hr>
  	手机号：${customer.vMobile} &nbsp;
  	用户姓名：${customer.vUsername} &nbsp;
  	所属品牌 ：${customer.nBrandname} &nbsp;
  	累计积分：${customer.nIntf} &nbsp;
  	剩余积分：
  	<hr>
  	<div align="left" >
  	<font>兑换车清单</font>
  	&nbsp;<a href="">继续兑换</a><hr>
  	<div align="left" ><font>礼品信息列表</font></div>
	<table id="tt" class="easyui-datagrid" style="width:100%;height:auto" >
  		<thead>
  		<tr>
  			<th>礼品图片</th>
  			<th>礼品名称</th>
  			<th>兑换所需积分</th>
  			<th>礼品数量</th>
  			<th>小计</th>
  			<th>操作</th>
  		</tr>
  		</thead>
  		<c:forEach items="${giftcart}" var="gift">
  			<tr>
  				<td><img src="${gift.vFile}"></td>
  				<td>${gift.vGiftname}</td>
  				<td>${gift.nNum}</td>
  				<td><input type="text" name="giftnum" onblur="giftnum()"></td>
  				<td>${gift.nSubs}</td>
  				<td>
  					<a href="/crm/gift/addCart?nGiftno=${gift.nGiftno}">删除||</a>
					<a href="/crm/gift/addCart?nGiftno=${gift.nGiftno}">修改</a>
  				</td>
  			</tr>
  		</c:forEach>
  	</table>
  	<div align="right">总共：1种 一共1件<font color="red">总计：</font></div>
  	</div>
  </body>
</html>
